I’ve set up a Substance Designer graph, to quickly create textures for Project D characters. It includes an option to change between colour and ID mask.
In unreal engine the ID mask is used to store up to 50 masks in one RGBA channel, I am currently using the masks to change colours dynamically in the master material instance.
Tool in use example